package itsm.isperp;

import org.junit.runner.RunWith;
import org.springframework.test.annotation.Rollback;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.annotation.Transactional;

/**
 * 基础测试
 * 
 * @author lzx
 * 
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:app-test.xml" })
@TransactionConfiguration(transactionManager = "txManager", defaultRollback = false)
@Transactional
public class BaseTestCase extends AbstractJUnit4SpringContextTests {

	/**
	 * 回滚
	 */
	@Rollback(true)
	public void rollback() {
		System.out.println("Rollback......!");
		// org.apache.solr.client.solrj.SolrServer
	}

}
